import cv2
import numpy as np


if __name__ == '__main__':
    img = cv2.imread('lena_color.jpg')
    cv2.imshow('img', img)
    cv2.waitKey()
    cv2.destroyAllWindows()
    print(img.shape)

    img = cv2.resize(img, (600, 600))
    cv2.imshow('img', img)
    cv2.waitKey()
    cv2.destroyAllWindows()
    print(img.shape)

    img = cv2.resize(img, None, fx=0.5, fy=0.5)
    cv2.imshow('img', img)
    cv2.waitKey()
    cv2.destroyAllWindows()
    print(img.shape)